import request2 from '@/api/axios2.js';

const pageList = (params) =>{
    return request2({
        url: '/menu/pageList',
        method: 'get',
        params
    })
}
const saveOrUpdate = (data) =>{
    return request2({
        url: '/menu/saveOrUpdate',
        method: 'put',
        data
    })
}
const del = (data) =>{
    return request2({
        url: '/menu/delById',
        method: 'delete',
        data
    })
}
const queryByRoleId = (params)=>{
    return request2({
        url: '/menu/queryByRoleId',
        method: 'get',
        params
    })
}
const roleBinding = (data)=>{
    return request2({
        url: '/menu/roleBinding',
        method: 'post',
        data
    })
}
export{
    pageList,
    saveOrUpdate,
    del,
    queryByRoleId,
    roleBinding
}